<?php
session_start();
require "../../../global.php";
include   $SystemConest[0]."/".$SystemConest[1]."/system/Config.php";
require_once $SystemConest[0]."/"."inc/config.php";
require_once  $SystemConest[0]."/"."inc/Uifunction.php";
require_once  $SystemConest[0]."/".$SystemConest[1]."/UIFunction/adminClass.php";
require_once  $SystemConest[0]."/".$SystemConest[1]."/system/MenuSys/function.php";
require_once  $SystemConest[0]."/".$SystemConest[1]."/system/ClassSys/function.php";
$mydb=new YYBDB();
CheckRule($MenuId,$mydb,"sysadmin","");//检查登陆权限
?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>密码修改</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<form name="form1" method="post" action="/<? echo $SystemConest[1];?>/System/AdminSys/ModifyPassWord_Save.php">
  <table width="95%" height="266" border="0" align="center" cellpadding="0" cellspacing="1" class="YKTtable">
    <tr class="YKTth">
      <td height="26"> 　　当前位置：密码修改</td>
    </tr>
    <tr class="YKTtd">
      <td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" class="TableLine">
          <tr>
            <td width="27%" height="25" class="TdLine"><div align="right">*您的旧密码：</div></td>
            <td width="73%" class="TdLine"><label>
              <input name="OldPwd" type="password" class="InputNone" id="OldPwd">
            </label></td>
          </tr>
          <tr>
            <td height="25" class="TdLine"><div align="right">*输入新密码：</div></td>
            <td class="TdLine"><input name="NewPWD" id="NewPWD" type="password" class="InputNone" >
              密码<strong>5～16</strong>位。限用字母、数字、特殊字符。</td>
          </tr>
          <tr>
            <td height="25" class="TdLine"><div align="right">*新密码确认：</div></td>
            <td class="TdLine"><input name="RPWD"  type="password" class="InputNone" id="RPWD"></td>
          </tr>
        </table>
          <p align="center">
            <input type="image" name="sumbit" id="sumbit" src="../../Iamges/botton_baocun.png" />
        </p></td>
    </tr>
  </table>
</form>
<script language="javascript">
$("#sumbit").bind("click",function(){
	if($("#OldPwd").val()==""){
		alert("旧密码不能为空");
		$("#OldPwd").focus();
		return false;	
	}
	NewPWD=$("#NewPWD").val()
	if(NewPWD=="" || (NewPWD.length<5 || NewPWD.length>16) ){
		alert("新密码长度为5至16之间");
		$("#NewPWD").focus();
		return false;	
	}
	RPWD=$("#RPWD").val()
	if(NewPWD!=RPWD)
	{
		alert("两次密码不一样，请重新新输入");
		$("#RPWD").focus();
		return false;
	}
	
});

</script>

</body>
</html>
